package com.rs.game.player.dialogues;

import com.rs.game.World;
import com.rs.game.WorldTile;

public class ContestManager extends Dialogue{

	private int npcId;
	
	@Override
	public void start() {
		npcId = (Integer) parameters[0];
		sendNPCDialogue(npcId, 9827, "Hey! Wanna participate in the type contest?");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		if (stage == -1) {
			stage = 0;
			if (World.canEnter) {
				player.setNextWorldTile(new WorldTile(2635, 9380, 0));
				end();
			} else {
				player.getPackets().sendGameMessage("The TypeContest isn't open atm.");
				return;
			}
		}
	}
	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}

}
